package com.itheima.a12innerclassdemo01;

/***
 *@title Car
 *@description <TODO description class purpose>
 *@author 12468
 *@version 1.0.0
 *@create 2024-10-30 0:48
 **/
public class Car {
    String carName;
    int carAge;
    String carColor;

    public void show() {
        System.out.println(carAge);
        Engine engine = new Engine();
        System.out.println(engine.engineAge);
    }

    class Engine {
        String engineName;
        int engineAge;

        public void show() {
            System.out.println(engineName);
            System.out.println(carName);
        }
    }
}
